The Basic Setup page allows you to define and change the basic settings for each of the four services running in the JavaServer.
The Basic Setup page has two screens:
Port
Defines the port that your HTTP, Proxy, or HTTPS service listens on to
field requests. A port number can be any number between 1 and 65535.
(On UNIX, port numbers less than 1024 are considered "protected" ports
and run as root
. If you want to run your JavaServer on a
port less than 1024, for example the default World Wide Web port 80,
see Installation.)
The JavaServer default ports are:
Stop
If you choose, you can Stop a service rather than restart it. If you do this,
the Restart button changes to read Start. To restart a stopped service, click
Start.
Provide Service On
This field allows you to accept connections on more than one network
address, if your machine is set up for multihoming. For example, if you
have installed two interface cards, and one is set to le0
and
one is set to le1
, you can assign a single port (for
example, 8080) to listen to requests that come in on both cards, or you can
set your port to listen only a single card. If you set up your server
to accept requests on only one card, requests that come in on the other
card are ignored.
Special Note: The Proxy Service Basic Setup screen does not have entries for the Index.html File or Document Root Directory categories shown here under General Settings. Also, the Proxy Service Basic Setup screen has no Advanced Settings screen at all.
Index.html File
The name of the default HTML file the JavaServer loads when you enter
the URL for your machine. In many cases this file is actually called
index.html
; however, you can enter the name of any file. This
file becomes the default file the JavaServer loads when you connect to
any directory on your machine.
For example, if you define the Index.html file to be myfile.html
,
whenever you connect to any directory that has a myfile.html
file (and no other file name is specified in the URL), that file will be the
default file displayed by the JavaServer.
To illustrate this, if your machine name is venus
, and you
define the Index.html File as space.html
(and set the Document
Root Directory to /home/galileo
), then type the URL:
http://venus:8080you will display the file
/home/galileo/space.html
.
If there is no Index.html file defined in this field, and you connect to a directory on your machine without giving some other file name in the URL, the files in the directory will be listed by the JavaServer.
Document Root Directory
The name of the default directory on your machine where your HTML documents
are placed. When you first install the JavaServer, the default document
directory is server_root/public_html
.
You can change this directory to be any directory you choose, for example,
a docs
directory inside your own home directory.
For example, if you are the user galileo
on the machine
venus
, you could set your Document Root Directory to
/home/galileo/docs
. Then, to access this directory you would
simply type the URL:
http://venus:8080
Local Server Names
The name of the local server machine (or machines) that will act as proxies.
If the machine is known by more than one name (e.g., localhost, moxie), separate the
names with commas.
Do Not Act as a Proxy For:
Use this field to list the machines inside a firewall that do not require proxy
service. Separate multiple machine names with commas.
Security Checks
This setting has to do with basic security checking. It has two choices:
Directory Access
This setting has to do with what gets displayed in your default document root
directory. It has two choices:
Index.html
field) that can be displayed when an HTTP connection is
made to your JavaServer, a list of the files in the directory will be displayed
instead.
Servlet Chains
This setting has to do with allowing servlets to be chained (that is, granting one
servlet the permission to call and execute another servlet. For more information see
Filters and Servlet Chaining). This setting has
two choices:
cgi-bin
, and the full path is
server_root/cgi-bin
.